import Layout from '/@/layout/index.vue'
export default [
  {
    path: '/',
    name: '欢迎',
    icon: 'el-icon-user',
    hidden: true,
    component: Layout,
    redirect: '/welcome',
    children: [
      {
        path: 'welcome',
        name: '欢迎',
        component: () => import('../views/welcome/index.vue'),
        meta: {
          title: '欢迎',
          icon: 'MenuOutlined',
          roles: ['admin', 'guest']
        }
      }
    ]
  },
  {
    path: '/dashboard',
    name: '页面实例',
    icon: 'el-icon-user',
    component: Layout,
    redirect: '/dashboard/form',
    children: [
      {
        path: 'form',
        name: '基础表单',
        component: () => import('../views/dashboard/form/index.vue'),
        meta: {
          title: '基础表单',
          icon: 'MenuOutlined',
          roles: ['admin', 'guest']
        }
      }
    ]
  },
  {
    path: '/docdemo',
    name: '业务组件库',
    icon: 'el-icon-s-order',
    component: Layout,
    redirect: '/docdemo/classic',
    meta: {
      title: '业务组件库',
      icon: 'ContainerOutlined',
      roles: ['admin']
    },
    children: [
      {
        path: 'classic',
        name: '组件展示',
        component: () => import('../views/docdemo/classic.vue'),
        meta: {
          title: '组件展示',
          icon: 'ContainerOutlined'
        }
      }
    ]
  },
  {
    path: '/:path(.*)*',
    name: 'NotFound',
    hidden: true,
    component: () => import('../views/error/404.vue')
  }
]
